app.controller('SelectMealCtrl', function ($scope, $location) {

    var all_combos = {
        "KFC": [{'name': '田园脆鸡堡', 'price': '10.00'},
            {'name': '黄金咖喱猪排饭', 'price': '23.50'},
            {'name': '意式肉酱肉丸饭', 'price': '16.00'},
            {'name': '老北京鸡肉卷', 'price': '14.00'},
            {'name': '劲脆鸡腿堡', 'price': '15.00'}],
        '7-11': [{'name': '半荤半素' , 'price': '11.50'},
            {'name': '特色小吃' , 'price': '11.00'}],
        '成都小吃':[{'name': '霸王面' , 'price': '12.50'},
            {'name': '成都特色饭' , 'price': '14.00'}]
    };
    var restaurant = localStorage.getItem('restaurant');
    $scope.combos = all_combos[restaurant];

    $scope.go_to_select_menu = function (name,price) {

        localStorage.setItem('combo_name', name);

        localStorage.setItem('combo_price', price);
        $location.path('select_menu');
    }
});




//